package com.globallogic.run;

import com.globallogic.model.Tasks;
import com.globallogic.service.TaskExecutor;

public class JiraTaskCreator {

	public static void main(String[] args) {
	
		JiraTaskCreator app = new JiraTaskCreator();
		app.run(args[0], args[1], args[2], args[3]);
	}
	
	private void run(String fileName, String fileNameMessageBody, String login, String password) {
    	tasks = new Tasks(fileName, fileNameMessageBody);
    	taskExecutor = new TaskExecutor();
    	
    	taskExecutor.execute(tasks.getTaskList(), login, password);
		
	}
	
    private Tasks tasks;
    private TaskExecutor taskExecutor;
	
}
